package earogya.pharmacy.pharmacy;

import java.util.Date;
import java.sql.Time;

/*class ReleaseDrugs
 * 
 * contains the attributes considered when a drug is released from the pharmacy
 * 
 *  
 * */
public class ReleaseDrugs {
	
	private int releaseId;
	private int drugId;
	private int quantity;
	private String units;
	private String unitOrWard;
	private int patientId;
	private Date releaseDate;
	private Time releaseTime;
	
	
	public ReleaseDrugs(){
		
	}
	
	public ReleaseDrugs(int drugid,int quantity, String unitOrWard, String units){
		this.drugId = drugid;
		this.quantity = quantity;
		this.units = units;
		this.unitOrWard = unitOrWard;
	}
	
	public ReleaseDrugs(int drugid,int quantity, String units, String unitOrWard, Date releaseDate, Time releaseTime){
		this.drugId = drugid;
		this.quantity = quantity;
		this.units = units;
		this.unitOrWard = unitOrWard;
		this.releaseDate = releaseDate;
		this.releaseTime = releaseTime;
	}
	
	public int getReleaseId(){
		return releaseId;
	}
	
	public void setReleaseId(int id){
		releaseId =id;
	}
	
	public void setDrugId(int did){
		drugId = did;
	}
	
	public int getDrugId(){
		return drugId;
	}
	
	public void setQuantity(int qunt){
		quantity = qunt;
	}
	
	public int getQuantity(){
		return quantity;
	}
	
	public void setReleaseDate(Date rdate){
		releaseDate = rdate;
	}
	
	public Date getReleaseDate(){
		return releaseDate;
	}
	
	public void setReleaseTime(Time rtime){
		releaseTime = rtime;
	}
	
	public Time getReleaseTime(){
		return releaseTime;
	}
	
	public void setUnitOrWard(String uow){
		unitOrWard= uow;
	}
	
	public String getUnitOrWard(){
		return unitOrWard;
	}
	
	public int getPatientId(){
		return patientId;
	}
	
	public void setPatientId(int pid){
		patientId = pid;
	}
	
	public void setUnits(String unit){
		units = unit;
	}
	
	public String getUnits(){
		return units;
	}

}
